<%@ page language="java" pageEncoding="UTF-8"%>
<HTML>
	<HEAD>
		<meta http-equiv="Content-Language" content="zh-cn">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<LINK href="${pageContext.request.contextPath}/css/Style.css" type="text/css" rel="stylesheet">
		<script type="text/javascript" src="<%=request.getContextPath() %>/js/Calendar.js"></script>
	</HEAD>
	<body>
		<form name="Form1" method="post"  action="${pageContext.request.contextPath}/studentServlet" >
			<input  type="hidden" name="method" value="add">
			&nbsp;
			<table cellSpacing="1" cellPadding="5" width="100%" align="center" bgColor="#eeeeee" style="border: 1px solid #8ba7e3" border="0">
				<tr>
					<td class="ta_01" align="center" bgColor="#bbb888" colSpan="4"
						height="50">
						<h1><STRONG>添加学生</STRONG></h1>
					</td>
				</tr>

				<tr>
					<td width="18%" align="center" bgColor="#f5fafe" class="ta_01">
						登录名：
					</td>
					<td class="ta_01" bgColor="#ffffff" colspan="3">
						<input type="input" name="loginname" value="${student.loginname}" id="loginName" class="bg"/>
					</td>
				</tr>
				<tr>
					<td align="center" bgColor="#f5fafe" class="ta_01">
						 密码：
					</td>
					<td class="ta_01" bgColor="#ffffff">
						<input type="password" name="password" value="${student.password}" id="password"/>
					</td>
					<td align="center" bgColor="#f5fafe" class="ta_01">
						学生姓名：
					</td>
					<td class="ta_01" bgColor="#ffffff">
						<input type="text" name="studentname" value="${student.studentname}" class="bg" />
					</td>
				</tr>
				<tr>
					<td align="center" bgColor="#f5fafe" class="ta_01">
						性别：
					</td>
					<td class="ta_01" bgColor="#ffffff">
						<input type="radio" value="男" name="gender" id="gender0"/>男
						<input type="radio" value="女" name="gender" id="gender1"/>女
					</td>
					<td align="center" bgColor="#f5fafe" class="ta_01">
						专业：
					</td>
					<td class="ta_01" bgColor="#ffffff">
						<select name="major" id="major">
							<option value="">--选择专业--</option>
							<option value="java">java</option>
							<option value="大数据">大数据</option>
							<option value="全栈">全栈</option>
							<option value="测试">测试</option>
							<option value="数媒">数媒</option>
						</select>
					</td>
				</tr>
				<tr>
					<td align="center" bgColor="#f5fafe" class="ta_01">
						出生日期：
					</td>
					<td class="ta_01" bgColor="#ffffff">
						<input type="text" name="birth" value="${student.birth}" id="birth" size="20" readonly="true"  onclick="c.show(this)"/>
					</td>
					<td align="center" bgColor="#f5fafe" class="ta_01">
						电话：
					</td>
					<td class="ta_01" bgColor="#ffffff">
						<input type="text" name="telephone" value="${student.telephone}" id="telephone"/>
					</td>
				</tr>
				<tr>
					<td align="center" bgColor="#f5fafe" class="ta_01">
						兴趣爱好：
					</td>
					<td class="ta_01" bgColor="#ffffff" colSpan="3">
						 看电影<input type="checkbox" name="hobby" value="看电影" />
						 看书<input type="checkbox" name="hobby" value="看书" />
						 健身<input type="checkbox" name="hobby" value="健身" />
						 打游戏<input type="checkbox" name="hobby" value="打游戏" />
						 敲代码<input type="checkbox" name="hobby" value="敲代码" />
					</td>
				</tr>
				<tr>
					<td align="center" bgColor="#f5fafe" class="ta_01">
						头像：
					</td>
					<td class="ta_01" bgColor="#ffffff" colSpan="3">
						<input type="file" name="photo" value="${student.photo}" size="30"/>
					</td>
				</tr>
				<TR>
					<TD class="ta_01" align="center" bgColor="#f5fafe">
						备注：
					</TD>
					<TD class="ta_01" bgColor="#ffffff" colSpan="3">
						<textarea cols="30" rows="3" name="remark" style="WIDTH: 96%"></textarea>
					</TD>
				</TR>
				<TR>
					<td align="center" colSpan="4" class="sep1">
						<img src="${pageContext.request.contextPath}/images/shim.gif">
					</td>
				</TR>


				<tr>
					<td class="ta_01" style="WIDTH: 100%" align="center"
						bgColor="#f5fafe" colSpan="4">
						
						<input type="submit"  value="确定" class="button_ok"/>
						<FONT face="宋体">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT>
						<input type="reset"  value="重置" class="button_cancel"/>
						<FONT face="宋体">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT>
						<INPUT class="button_ok" type="button" onclick="history.go(-1)" value="返回"/>
						<span id="Label1"></span>
					</td>
				</tr>
			</table>
		</form>
	<h1>${addMsg}</h1>
	</body>
</HTML>